<#import "/spring.ftl" as spring />
<#import "/inspector-time-macros.ftl" as imacro />
<html>
<head>
	<link rel="stylesheet" type="text/css" href="<@spring.url "/content_pane.css" />" />
	<title>Referring realtor</title>
</head>
<body>
<div id="content">

<h1>REFERRING REALTOR</h1>

<#if realtor.id??>
	<p>Please edit any of the fields below and click "SAVE" to change the Realtor's contact information.</p>
<#else>
	<p>Please enter the Realtor's contact information below and click "SAVE".</p>
</#if>

	<p>The Realtor will show up in a list of "Referring Realtors" that a Home Buyer can select while scheduling an inspection.</p>

	<@imacro.listErrors "realtor" />

<form action="editReferringRealtor.html" method="post">
	<@spring.formHiddenInput "realtor.id" />
	
	<table class="formTable twoColForm">
		<tr>
			<th><span class="required">*</span>First Name</th>
			<td><@spring.formInput "realtor.name.first", 'size="25", maxlength="50"'/></td>
		</tr>
		<tr>
			<th><span class="required">*</span>Last Name</th>
			<td><@spring.formInput "realtor.name.last", 'size="25", maxlength="50"'/></td>
		</tr>
		<tr>
			<th><span class="required">*</span>Company Name</th>
			<td><@spring.formInput "realtor.company", 'size="25", maxlength="100"'/></td>
		</tr>
		<tr>
			<th>Office</th>
			<td><@spring.formInput "realtor.office", 'size="25", maxlength="100"'/></td>
		</tr>
		<tr>
			<th><span class="required">*</span>Phone</th>
			<td><@spring.formInput "realtor.cellPhone", 'size="15", maxlength="20"'/></td>
		</tr>
		<tr>
			<th><span class="required">*</span>Email Address</th>
			<td><@spring.formInput "realtor.email", 'size="25", maxlength="100"'/></td>
		</tr>
		<tr>
			<th><span class="required">*</span>Email Address Confirm</th>
			<td><@spring.formInput "realtor.emailConfirm", 'size="25", maxlength="100"'/></td>
		</tr>
		<tr>
			<td colspan="2" class="buttons">
				<input type="submit" value="SAVE" class="formButton"/>
				<#if realtor.id??>
					<a href="deleteReferringRealtor.html?agentId=${realtor.id}" class="formLink">-REMOVE-</a>
				</#if>
				<a href="referringRealtors.html" class="formLink">-CANCEL-</a>
			</td>
		</tr>
	</table>
</form>

</div>
</body>
</html>
